package com.wsfk.ssm.path;

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.SystemUtils;

public class POPS {
	private String winSavePath;
	private String liunxSavePath;
	private String httpViewPath;
	private String os = SystemUtils.OS_NAME;

	public String getWinSavePath() {
		return winSavePath;
	}

	public void setWinSavePath(String winSavePath) {
		this.winSavePath = winSavePath;
	}

	public String getLiunxSavePath() {
		return liunxSavePath;
	}

	public void setLiunxSavePath(String liunxSavePath) {
		this.liunxSavePath = liunxSavePath;
	}

	public String getHttpViewPath() {
		return httpViewPath;
	}

	public void setHttpViewPath(String httpViewPath) {
		this.httpViewPath = httpViewPath;
	}

	public void setOs(String os) {
		this.os = os;
	}
	public String getOs(){
		return os;
	}

	public String getSavePath() {
		if(StringUtils.startsWithIgnoreCase(os, "win")){
			return this.winSavePath;			
		}
		return this.liunxSavePath;
	
	}
	public static void main(String[] args) {
		System.out.println(new POPS().os);
	}
}
